﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using FutureApp.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FutureApp.Person
{
    /// <summary>
    /// 主表
    /// </summary>
    [Table("Choose")]
    public class Choose : FullAuditedEntity<Guid, User>, IPassivable
    {
        /// <summary>
        /// 激活/禁用
        /// </summary>
        [Required]
        public virtual bool IsActive { get; set; } = true;


        /// <summary>
        ///外键
        /// </summary>
        public virtual Guid CStudentId { get; set; }
        /// <summary>
        ///外键
        /// </summary>
        public virtual Guid CourseId { get; set; }
        /// <summary>
        ///外键
        /// </summary>
        [ForeignKey("CStudentId")]
        public virtual Student Student { get; set; }

        /// <summary>
        ///外键
        /// </summary>
        [ForeignKey("CourseId")]
        public virtual Course Course_C { get; set; }


    }
}
